package com.tianhui.consignortwofei.mvp.model;

import android.content.Context;

import com.fgs.common.CommonModel;
import com.fgs.common.api.CommonApiService;
import com.fgs.common.api.CommonConfig;
import com.fgs.common.progress.ObserverResponseListener;

import java.util.List;

import io.reactivex.ObservableTransformer;
import okhttp3.MultipartBody;

/**
 * @author fgs
 * @date 2020/9/17
 * @description
 **/
public class UploadPictureModel<T> extends CommonModel implements IPictureModel<T> {
    @Override
    public void uploadPictureModel(Context context, List<MultipartBody.Part> parts, boolean isDialog, ObservableTransformer<T, T> transformer, ObserverResponseListener observerListener) {
        subscribe(context, CommonConfig.getInstance().create(CommonApiService.class).uploadPicture(parts), observerListener, transformer, isDialog, true);
    }
}
